package request

type TmallServiceSettleadjustmentOperateRequest struct {
	/*
	   调整单ID（也即退款单ID）     */
	SettlementAdjustmentOrderId *int64 `json:"settlement_adjustment_order_id" required:"true" `
	/*
	   审批备注     */
	Memo *string `json:"memo" required:"true" `
	/*
	   操作动作     */
	OperateCode *string `json:"operate_code" required:"true" `
}

func (s *TmallServiceSettleadjustmentOperateRequest) SetSettlementAdjustmentOrderId(v int64) *TmallServiceSettleadjustmentOperateRequest {
	s.SettlementAdjustmentOrderId = &v
	return s
}
func (s *TmallServiceSettleadjustmentOperateRequest) SetMemo(v string) *TmallServiceSettleadjustmentOperateRequest {
	s.Memo = &v
	return s
}
func (s *TmallServiceSettleadjustmentOperateRequest) SetOperateCode(v string) *TmallServiceSettleadjustmentOperateRequest {
	s.OperateCode = &v
	return s
}

func (req *TmallServiceSettleadjustmentOperateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.SettlementAdjustmentOrderId != nil {
		paramMap["settlement_adjustment_order_id"] = *req.SettlementAdjustmentOrderId
	}
	if req.Memo != nil {
		paramMap["memo"] = *req.Memo
	}
	if req.OperateCode != nil {
		paramMap["operate_code"] = *req.OperateCode
	}
	return paramMap
}

func (req *TmallServiceSettleadjustmentOperateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
